
export function queryAllIconfont() {
  // 获取public下 data 文件夹中的test.json文件数据
  // options = [{label:'',value:''},{},{}]
  const iconfontJson = require('../iconfont/iconfont.json');
  let options = []
  let className = iconfontJson.font_family + " " + iconfontJson.css_prefix_text  // iconfont icon-
  for(let i = 0 ; i < iconfontJson.glyphs.length;i++) {
    let content = {
      label: iconfontJson.glyphs[i].name,
      value: className + iconfontJson.glyphs[i].font_class
    } 
    options.push(content)
  }
  return options
}






